<?=$system_message;?>
<div class="row">
	<div class="btn-group">
		<a href="<?=site_url();?>" class="btn btn-success btn-small">Exit</a>
		<a href="<?=site_url('calendar/school/'.$current_year.'/'.$current_month);?>" class="btn btn-small">School Calendar</a>
		<a href="<?=site_url('calendar/section/'.$current_year.'/'.$current_month);?>" class="btn btn-small  btn-inverse">Section Calendar</a>
	</div>
	<hr class="clearfix">

	<div class="row">
		<div class="large-8 columns">
		<div class="large-6 columns">
			<?=form_dropdown('name', $months,$current_month,'class="redirect-auto-calendar-month" data-url="'.$plink.'" data-add="'.$current_year.'" data-section="'.$current_section.'"');?>
		</div>
		<div class="large-3 columns">
			<?=form_dropdown('name', $years,$current_year,'class="redirect-auto-calendar-year" data-url="'.$plink.'" data-add="'.$current_month.'" data-section="'.$current_section.'"');?>
		</div>
		<div class="large-3 columns">
			<?=form_dropdown('name', $sections,$current_section,'class="redirect-auto" url="'.$clink.'"');?>
		</div>
		</div>
	</div>
</div>
<!-- SHOW THE CALENDAR -->
<?=$calendar;?>
<script src="<?=script_url('custom/calendarautoredirect');?>"></script>

